package com.ct.ioc.facade;

public class FacadeClient {
    BedRoomLight bedRoomLight = new BedRoomLight();
    LivingRoomLight livingRoomLight = new LivingRoomLight();
    HallRoomLight hallRoomLight = new HallRoomLight();

    void lightOn () {
        bedRoomLight.on();
        livingRoomLight.on();
        hallRoomLight.on();
    }

    void lightOff () {
        bedRoomLight.off();
        livingRoomLight.off();
        hallRoomLight.off();
    }
}
